/** 获取assets静态图片 */
export const getAssetsImage = (image: string): string => {
  try {
    // const path = url.replace('@', '..')
    // return new URL(path, import.meta.url).href
    return new URL(`../assets/images/${image}`, import.meta.url).href
  } catch (err) {
    console.error(err)
    return ''
  }
}
